//导入 uniq 函数
const uniq = require('uniq');
//声明一个数组
let arr = [1,2,3,4,5,4,3,2,2,3,1];
//数组去重
console.log(uniq(arr));
